<?php 

$time=getTimestamp();
?>
<div id="textdiv_<?=$time?>"><?=$value?></div>
<div id="inputdiv_<?=$time?>"> 
<input id="input_<?=$time?>" value="<?=$value?>">
</div>
<script type="text/javascript">
$("#inputdiv_<?=$time?>").hide();
$("#textdiv_<?=$time?>").dblclick(function() {
	$("#textdiv_<?=$time?>").hide();
	$("#inputdiv_<?=$time?>").show();
});


$("#input_<?=$time?>").change(function () {

	editTagvalue=$(this).val();
	ajaxedittable("portal_tables_fields",<?=$currentObject->id?>,"lib_fr",editTagvalue);
});

</script>